{{csrf_field()}}
<div class="layui-form-item" style="display: flex;align-items: center;">
    <label for="" class="layui-form-label">地铁线</label>
    <div class="layui-input-inline" style="color:#999;">
        <span>{{ $metro->region }} - {{ $metro->name }}</span>
        <input type="hidden" name="metro_id" value="{{$metro->id}}" lay-verify="required" class="layui-input" >
        <input type="hidden" id="city" value="{{ $metro->region }}">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">站点名称 *</label>
    <div class="layui-input-inline">
        <input type="text" name="name" value="{{$metro_station->name??old('name')}}" lay-verify="required" placeholder="请输入地铁站名称" class="layui-input" >
    </div>
</div>
<div class="layui-form-item" style="display: flex;">
    <div class="layui-inline">
        <label for="" class="layui-form-label">地图标注</label>
        <div class="layui-input-inline" style="width:300px;">
            <input type="text" name="map" id="map" value="{{$metro_station->map??old('map')}}" placeholder="标注经纬度" class="layui-input" >
        </div>
    </div>
    <button type="button" class="layui-btn layui-btn-danger"  id="getmap">获取标注</button>
{{--    <input type="hidden" id="uri" value="{{env('APP_URI')}}">--}}
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">排序</label>
    <div class="layui-input-inline">
        <input type="text" name="sort" value="{{$metro_station->sort??old('sort',0)}}" placeholder="填写数字" class="layui-input" >
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-block">
        <input type="radio" name="status" value="T" title="启用" @if(isset($metro_station->status) && $metro_station->status == 'T') checked @elseif(!isset($metro_station->status)) checked @endif>
        <input type="radio" name="status" value="F" title="禁用" @if(isset($metro_station->status) && $metro_station->status == 'F') checked @endif>
    </div>
</div>
<div class="layui-form-item">
    <div class="layui-input-block">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formDemo">确 认</button>
        <a  class="layui-btn" href="/admin/metro_station/{{$metro->id}}" >返 回</a>
    </div>
</div>